package jus.aoo.lisp;

public class Eval extends Subr implements ParamEvaluable{
	public static Eval EVAL = new Eval();
	
	public Sexpr apply(Scons e) throws LispException{
		Sexpr b = e.cdr();
		if( b instanceof Nil ){
			return e.eval();
		}
		throw new LispException("Erreur eval: too much parameters");
	}
	
	public String toString(){
		return "eval";
	}
	
	
}
